package 洛谷;

import java.util.Scanner;

public class R格式 {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		double b = sc.nextDouble();
		System.out.println(Math.round(Math.pow(2, a) * b));
	}
}